package com.scalar.chiptrack.sales.forms.quote;

import com.scalar.chiptrack.ChipTrackActionForm;
import com.scalar.chiptrack.sales.QuotationQuestionnairy;
import com.scalar.chiptrack.sales.PreviousQuotationDetails;
import com.scalar.chiptrack.utils.StringUtils;
import com.scalar.chiptrack.utils.AutoGrowingArrayList;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.Calendar;

/**
 * Form bean for the sales_order page.  This form has the following fields,
 * with default values in square brackets:
 * <ul>
 * <li><b>action</b> - The maintenance action we are performing (Create. Modify & Save).
 * </ul>
 *
 * @author Kesava Kumar Achanala
 * @version $Revision: 1.21 $ $Date: 2010/03/29 16:51:16 $
 */

public class QuotationForm extends ChipTrackActionForm {

    private String action = null;
    private int quotationId = -1;
	private String quotationNo = null;
    private int customerId = -1;
    private String customerName = null;
    private String customerPo = null;
    private String contactPerson = null;
    private String salesPerson = null;
    private String phoneNumber = null;
    private String faxNumber = null;
    private String email = null;
    private String endUser = null;
    private String shippingMethod = null;
    private String shippingAccount = null;
    private ArrayList shippingMethods = null;
    private ArrayList shippingAddresses = null;
    private int billingAddressId = -1;
    private String billingAddress = null;
    private int shippingAddressId = -1;
    private String shippingAddress = null;
    private String comments = null;
    private String shippingInstructions = null;
    private boolean isCancel = false;
    private String status = null;
    private boolean isSample = false;
    private String enteredBy = null;
    private int alaramId = -1;
    private String shippingMethodName = null;
    private String reason = null;
    private String quotationDate = null;
    private String newshippingAccount = null;
    private String newshippingMethod = null;

    private String expiryDate = null;
    private boolean isApproved = false;
    private boolean isClosed = false;
    private String endUserId = null;
    private String billingContactPerson = null;
    private String shippingContactPerson = null;
    private String cellNumber = null;
    private ArrayList  contactPersons = null;
    private ArrayList  contactPersonsForBillingAddress = null;
    private ArrayList  contactPersonsForShippingAddress = null;
    private String newShippingTerms = null;
    private String salesRep = null;

    private int revision = 0;

    private String poRev  = null;
    private String poDate = null;

    private int odmId = -1;
    private String odm = null;
    private boolean isEndCustomerShipAddress = false;
    private int shippingInstructionsId = -1;

    private String freightInstructions = null;
    private ArrayList allDeliveryTerms = null;
    private String newDeliveryTerms = null;

    private int freightInstructionsId = -1;

    private String salesOrderQuoteNo = null;

    private int endCustomerId       = -1;
    private String endCustomer      = null;

    private ArrayList prvApprovedLineItems  = null;
    private boolean isDistributor;
    private String quoteType;
    private String application;
    private String addNewApplication;
    private String newEndUserName;
    private String newEndCustomerName;

    private String expectedPoDate = null;


     private String  quotationType		= null;
     private float   currentPrice		= 0.0f;
     private int     currentPriceUnits	= 0;
     private String  currentPriceUnitsType = null;
     private String  currentPriceOthers	= null;
     private float   targetPrice		    = 0.0f;
     private String  targetPriceUnitsType = null;
     private int     targetPriceUnits	= 0;
     private String  targetPriceOthers	= null;
     private String  historyPricesInfo		= null;
     private boolean contractPriceFlag	    = false;
     private FormFile contractPriceFilePath	= null;
     private String contractPriceFileName	= null;
    private String  contractPriceFileNamePath	= null;
     private String  contractPriceChangedReason  = null;
     private String  previousCommitments	        = null;
     private String  previousCommitmentsPrice	    = null;
     private String  commitmentAddtionalInfo	    = null;
     private boolean previousQuotation	= false;
     private String  previousQuotationDetails= null;
     private String[]  priceDiscountReason	    = null;
     private String  priceDiscountComments	= null;
     private boolean rebate     = false;
     private float  rebateValue		    = 0.0f;
     private String  rebateOpertunity	= null;
     private String  rebateGoal		    = null;
     private String  rebateTarget		= null;
     private float  rebateTargetValue	= 0.0f;
     private String  rebateVerifiedBy	= null;
     private String  competatior1		    = null;
     private String  competatior1Others	    = null;
     private float  competatior1Price	    = 0.0f;
     private String  competatior1PriceUnit	= null;
     private String  competatior1Comments	= null;
     private String  competatior2		    = null;
     private String  competatior2Others	    = null;
     private float  competatior2Price	    = 0.0f;
     private String  competatior2PriceUnit	= null;
     private String  competatior2Comments	= null;
     private float  distributorMargin	    = 0.0f;
     private float  marginDollars		    = 0.0f;
     private String  totalPrevMargins	    = null;
     private String  marginReason		    = null;
     private String  prevQuotationNo         = null;
     private String currentPriceUnitsString  =  null;
     private String targetPriceUnitsString    = null;
     private String  competatior1PriceUnitsType = null;
     private String  competatior2PriceUnitsType = null;
     private String competatior1PriceUnitOthers = null;
     private String competatior2PriceUnitOthers = null;
     private String rebateTargetGoalTimeFrame = null;
     private String rebateTargetGoalTimeFrameOthers = null;
     private String competatior1PriceUnitString  =  null;
     private String competatior2PriceUnitString    = null;
    private String projectName = null;
    private String opportunityId = null;


    private ArrayList previousQuotationDetailsList  = new AutoGrowingArrayList(PreviousQuotationDetails.class);
    private ArrayList previousQuotationPriceDetailsList  = new AutoGrowingArrayList(PreviousQuotationDetails.class);
    // ----------------------------------------------------------- Properties

    public int getQuotationId()
    {
        return quotationId;
    }

    public void setQuotationId(int quotationId)
    {
        this.quotationId = quotationId;
    }

	public String getQuotationNo()
    {
        return quotationNo;
    }

    public void setQuotationNo(String quotationNo)
    {
        this.quotationNo = quotationNo;
    }

    public int getCustomerId()
    {
        return customerId;
    }

    public void setCustomerId(int customerId)
    {
        this.customerId = customerId;
    }

    public String getCustomerName()
    {
        return customerName;
    }

    public void setCustomerName(String customerName)
    {
        this.customerName = customerName;
    }

    public String getCustomerPO()
    {
        return customerPo;
    }

    public void setCustomerPO(String customerPo)
    {
        this.customerPo = customerPo;
    }

    public String getContactPerson()
    {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson)
    {
        this.contactPerson = contactPerson;
    }

    public String getSalesPerson()
    {
        return salesPerson;
    }

    public void setSalesPerson(String salesPerson)
    {
        this.salesPerson = salesPerson;
    }

    public String getSalesRep()
    {
        return salesRep;
    }

    public void setSalesRep(String salesRep)
    {
        this.salesRep = salesRep;
    }

    public String getPhoneNumber()
    {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }

    public String getFaxNumber()
    {
        return faxNumber;
    }

    public void setFaxNumber(String faxNumber)
    {
        this.faxNumber = faxNumber;
    }

    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEndUser()
    {
        return endUser;
    }

    public void setEndUser(String endUser)
    {
        this.endUser = endUser;
    }


    public String getShippingAccount()
    {
        return shippingAccount;
    }

    public void setShippingAccount(String shippingAccount)
    {
        this.shippingAccount = shippingAccount;
    }

    public String getShippingMethod()
    {
        return shippingMethod;
    }

    public void setShippingMethod(String shippingMethod)
    {
        this.shippingMethod = shippingMethod;
    }
    //Added by Sarada to set properties to new ShippingMethod and Account
    public String getNewshippingAccount()
    {
        return newshippingAccount;
    }

    public void setNewshippingAccount(String newshippingAccount)
    {
        this.newshippingAccount = newshippingAccount;
    }

    public String getNewshippingMethod()
    {
        return newshippingMethod;
    }

    public void setNewshippingMethod(String newshippingMethod)
    {
        this.newshippingMethod = newshippingMethod;
    }

    public ArrayList getShippingMethods()
    {
        return shippingMethods;
    }

    public void setShippingMethods(ArrayList shippingMethods)
    {
        this.shippingMethods = shippingMethods;
    }

    public void addShippingAccountAndMethod (Object shippingAccountAndMethod)
	{
		if (this.shippingMethods == null) {
			this.shippingMethods = new ArrayList();
		}

		this.shippingMethods.add (shippingAccountAndMethod);
    }

    public ArrayList getShippingAddresses()
    {
        return shippingAddresses;
    }

    public void setShippingAddresses(ArrayList shippingAddresses)
    {
        this.shippingAddresses = shippingAddresses;
    }

    public int getBillingAddressId()
    {
        return billingAddressId;
    }

    public void setBillingAddressId(int billingAddressId)
    {
        this.billingAddressId = billingAddressId;
    }

    public String getBillingAddress()
    {
        return billingAddress;
    }

    public void setBillingAddress(String billingAddress)
    {
        this.billingAddress = billingAddress;
    }

    public int getShippingAddressId()
    {
        return shippingAddressId;
    }

    public void setShippingAddressId(int shippingAddressId)
    {
        this.shippingAddressId = shippingAddressId;
    }

    public String getShippingAddress()
    {
        return shippingAddress;
    }

    public void setShippingAddress(String shippingAddress)
    {
        this.shippingAddress = shippingAddress;
    }

    public String getComments()
    {
        return comments;
    }

    public void setComments(String comments)
    {
        this.comments = comments;
    }

    public String getShippingInstructions()
    {
        return shippingInstructions;
    }

    public void setShippingInstructions(String shippingInstructions)
    {
        this.shippingInstructions = shippingInstructions;
    }

    public boolean isCancel()
    {
        return isCancel;
    }

    public void setIsCancel(boolean isCancel)
    {
        this.isCancel = isCancel;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public boolean getIsSample()
    {
        return isSample;
    }

    public void setIsSample(boolean isSample)
    {
        this.isSample = isSample;
    }

    public int getAlaramId()
    {
        return alaramId;
    }

    public void setAlaramId(int alaramId)
    {
        this.alaramId = alaramId;
    }



    public String getAction()
    {
        return action;
    }

    public void setAction(String action)
    {
        this.action = action;
    }

    //For change order
    private int changeNo;
    public int getChangeNo()
    {
        if( changeNo == 0)
            changeNo = 1;
        return changeNo;
    }

    public void setChangeNo(int changeNo)
    {
        this.changeNo = changeNo;
    }

    public String getReason()
    {
        return reason;
    }

    public void setReason(String reason)
    {
        this.reason = reason;
    }

    //	Added by Prabhanjan (18 May 2004)
      double subTotalAsDouble   = 0.0;
      double salesTaxAsDouble   = 0.0;
      double frieghtAsDouble    = 0.0;
      double miscAsDouble       = 0.0;
      double orderTotalAsDouble = 0.0;

     public double getSubTotalAsDouble()
     {
         return subTotalAsDouble;
     }

     public void setSubTotalAsDouble(double subTotalAsDouble)
     {
         this.subTotalAsDouble = subTotalAsDouble;
     }

     public double getSalesTaxAsDouble()
     {
        return salesTaxAsDouble;
     }

     public void setSalesTaxAsDouble(double salesTaxAsDouble)
     {
        this.salesTaxAsDouble = salesTaxAsDouble;
     }

     public double getFrieghtAsDouble()
     {
       return frieghtAsDouble;
     }
     public void setFrieghtAsDouble(double frieghtAsDouble)
     {
       this.frieghtAsDouble = frieghtAsDouble;
     }

     public double getMiscAsDouble()
     {
         return miscAsDouble;
     }
     public void setMiscAsDouble(double miscAsDouble)
     {
         this.miscAsDouble = miscAsDouble;
     }

     public double getOrderTotalAsDouble()
     {
         return orderTotalAsDouble;
     }
     public void setOrderTotalAsDouble(double orderTotalAsDouble)
     {
         this.orderTotalAsDouble = orderTotalAsDouble;
     }
     //Modifications ends here

    private boolean financeHold = false;
    private String financeHoldUser = null;
    private boolean operationsHold = false;
    private String operationsHoldUser = null;
    private boolean marketingHold = false;
    private String marketingHoldUser = null;
    private boolean salesHold = false;
    private String salesHoldUser = null;

    public boolean getFinanceHold()
   {
       return financeHold;
   }

   public void setFinanceHold(boolean financeHold)
   {
       this.financeHold = financeHold;
   }

   public boolean getOperationsHold()
   {
       return operationsHold;
   }

   public void setOperationsHold(boolean operationsHold)
   {
       this.operationsHold = operationsHold;
   }

   public boolean getMarketingHold()
   {
       return marketingHold;
   }

   public void setMarketingHold(boolean marketingHold)
   {
       this.marketingHold = marketingHold;
   }

   public boolean getSalesHold()
   {
       return salesHold;
   }

   public void setSalesHold(boolean salesHold)
   {
       this.salesHold = salesHold;
   }

   public String getFinanceHoldUser()
   {
       return financeHoldUser;
   }

   public void setFinanceHoldUser(String financeHoldUser)
   {
       this.financeHoldUser = financeHoldUser;
   }

   public String getOperationsHoldUser()
   {
       return operationsHoldUser;
   }

   public void setOperationsHoldUser(String operationsHoldUser)
   {
       this.operationsHoldUser = operationsHoldUser;
   }

   public String getMarketingHoldUser()
   {
       return marketingHoldUser;
   }

   public void setMarketingHoldUser(String marketingHoldUser)
   {
       this.marketingHoldUser = marketingHoldUser;
   }

   public String getSalesHoldUser()
   {
       return salesHoldUser;
   }

   public void setSalesHoldUser(String salesHoldUser)
   {
       this.salesHoldUser = salesHoldUser;
   }

    public String getShippingMethodName()
    {
        return shippingMethodName;
    }

    public void setShippingMethodName(String shippingMethodName)
    {
        this.shippingMethodName = shippingMethodName;
    }


    private static int totalQty;
    private static float totalAmount;
    public String getTotalQty()
    {
        return StringUtils.formatUnits(totalQty);
    }
    public void setTotalQty(int totalQty)
    {
        this.totalQty = totalQty;
    }
    public String getTotalAmount()
    {
        return StringUtils.formatAmountWithNoOfDecimals(totalAmount);
    }
    public void setTotalAmount(float totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    //For taxes
    private String salesTaxType = null;
    private float subTotal = 0.0f;
    private float salesTax = 0.0f;
    private float frieght = 0.0f;
    private float misc = 0.0f;
    private float orderTotal = 0.0f;

    public String getSalesTaxType()
    {
        return salesTaxType;
    }
    public void setSalesTaxType(String salesTaxType)
    {
        this.salesTaxType = salesTaxType;
    }

    public float getSubTotal()
    {
        return subTotal;
    }
    public String getSubTotalAsString()
    {
        return StringUtils.formatAmountWithNoOfDecimals(subTotalAsDouble);
    }
    public void setSubTotal(float subTotal)
    {
        this.subTotal = subTotal;
    }

    public float getSalesTax()
    {
        return salesTax;
    }
    public String getSalesTaxAsString()
    {
        return StringUtils.formatAmountWithNoOfDecimals(salesTaxAsDouble);
    }
    public void setSalesTax(float salesTax)
    {
        this.salesTax = salesTax;
    }

    public String getFrieghtAsString()
    {
        return StringUtils.formatAmountWithNoOfDecimals(frieghtAsDouble);
    }
    public float getFrieght()
    {
        return frieght;
    }
    public void setFrieght(float frieght)
    {
        this.frieght = frieght;
    }

    public String getMiscAsString()
    {
        return StringUtils.formatAmountWithNoOfDecimals(miscAsDouble);
    }
    public float getMisc()
    {
        return misc;
    }
    public void setMisc(float misc)
    {
        this.misc = misc;
    }

    public float getOrderTotal()
    {
        return orderTotal;
    }
    public String getOrderTotalAsString()
    {
        return StringUtils.formatAmountWithNoOfDecimals(orderTotalAsDouble);
    }
    public void setOrderTotal(float orderTotal)
    {
        this.orderTotal = orderTotal;
    }


    //Added by kumar 02/10/03 for brecis
    private String regionalRep = null;
    private String shippingTerms = null;
    private String deliveryTerms = null;
    private String newsalesstate = null;
	private String newsalestax = null;


    public String getRegionalRep()
    {
        return regionalRep;
    }
    public void setRegionalRep(String regionalRep)
    {
        this.regionalRep = regionalRep;
    }

    public String getShippingTerms()
    {
        return shippingTerms;
    }
    public void setShippingTerms(String shippingTerms)
    {
        this.shippingTerms = shippingTerms;
    }

    public String getDeliveryTerms()
    {
        return deliveryTerms;
    }
    public void setDeliveryTerms(String deliveryTerms)
    {
        this.deliveryTerms = deliveryTerms;
    }


    public String getQuotationDate()
    {
        if(quotationDate == null)
            return StringUtils.formatDateToString(new java.util.Date(System.currentTimeMillis()), "MM/dd/yyyy");
        else
            return quotationDate;
    }

    public void setQuotationDate(String quotationDate)
    {
        this.quotationDate = quotationDate;
    }

    public String getExpiryDate()
    {
        Calendar calendar= Calendar.getInstance();
        calendar.add(Calendar.MONTH, 1);
        if(expiryDate == null)
            return StringUtils.formatDateToString(calendar.getTime(), "MM/dd/yyyy");
        else
            return expiryDate;
    }

    public void setExpiryDate(String expiryDate)
    {
        this.expiryDate = expiryDate;
    }


    private String miscName = "Misc";
	//private String miscName = "";
    public String getMiscName()
    {
        return miscName;
    }
    public void setMiscName(String miscName)
    {
        this.miscName = miscName;
    }

    private String newShippingMethod = null;
    public String getNewShippingMethod()
    {
        return newShippingMethod;
    }
    public void setNewShippingMethod(String newShippingMethod)
    {
        this.newShippingMethod = newShippingMethod;
    }
    public String getNewSalesState()
    {
        return newsalesstate;
    }
    public void setNewSalesState(String newsalesstate)
    {
        this.newsalesstate = newsalesstate;
    }
    public String getNewSalesTax()
    {
        return newsalestax;
    }
    public void setNewSalesTax(String newsalestax)
    {
        this.newsalestax = newsalestax;
    }

    public boolean getIsApproved ()
    {
        return isApproved;
    }

    public void setIsApproved ( boolean isApproved )
    {
        this.isApproved = isApproved;
    }

    public boolean getIsClosed ()
    {
        return isClosed;
    }

    public void setIsClosed ( boolean isClosed )
    {
        this.isClosed = isClosed;
    }
    // Added by veeru on 19th May 2004
    public String getEndUserId() {
        return endUserId;
    }

    public void setEndUserId(String endUserId) {
        this.endUserId = endUserId;
    }
    public String getBillingContactPerson() {
        return billingContactPerson;
    }

    public void setBillingContactPerson(String billingContactPerson) {
        this.billingContactPerson = billingContactPerson;
    }

    public String getShippingContactPerson() {
        return shippingContactPerson;
    }

    public void setShippingContactPerson(String shippingContactPerson) {
        this.shippingContactPerson = shippingContactPerson;
    }
    public String getCellNumber() {
        return cellNumber;
    }

    public void setCellNumber(String cellNumber) {
        this.cellNumber = cellNumber;
    }
    public ArrayList getContactPersons() {
            return contactPersons;
    }

    public void setContactPersons(ArrayList contactPersons) {
        this.contactPersons = contactPersons;
    }

    public ArrayList getContactPersonsForBillingAddress() {
        return contactPersonsForBillingAddress;
    }

    public void setContactPersonsForBillingAddress(ArrayList contactPersonsForBillingAddress) {
        this.contactPersonsForBillingAddress = contactPersonsForBillingAddress;
    }

    public ArrayList getContactPersonsForShippingAddress() {
        return contactPersonsForShippingAddress;
    }

    public void setContactPersonsForShippingAddress(ArrayList contactPersonsForShippingAddress) {
        this.contactPersonsForShippingAddress = contactPersonsForShippingAddress;
    }
    public String getNewShippingTerms() {
        return newShippingTerms;
    }

    public void setNewShippingTerms(String newShippingTerms) {
        this.newShippingTerms = newShippingTerms;
    }

    public int getRevision() {
        return revision;
    }

    public void setRevision(int revision) {
        this.revision = revision;
    }

    public String getPoRev() {
        if ( poRev == null ) {
             poRev ="";
        }
          return poRev;
    }

    public void setPoRev(String poRev) {
        this.poRev = poRev;
    }

    public String getPoDate() {
            return poDate;
    }

    public void setPoDate(String poDate) {
        this.poDate = poDate;
    }

    public int getOdmId() {
        return odmId;
    }

    public void setOdmId(int odmId) {
        this.odmId = odmId;
    }

    public String getOdm() {
        return odm;
    }

    public void setOdm(String odm) {
        this.odm = odm;
    }

    public boolean getIsEndCustomerShipAddress() {
        return isEndCustomerShipAddress;
    }

    public void setIsEndCustomerShipAddress(boolean endCustomerShipAddress) {
        isEndCustomerShipAddress = endCustomerShipAddress;
    }

    public int getShippingInstructionsId() {
        return shippingInstructionsId;
    }

    public void setShippingInstructionsId(int shippingInstructionsId) {
        this.shippingInstructionsId = shippingInstructionsId;
    }

    public ArrayList getAllDeliveryTerms() {
        return allDeliveryTerms;
    }

    public void setAllDeliveryTerms(ArrayList allDeliveryTerms) {
        this.allDeliveryTerms = allDeliveryTerms;
    }

    public String getNewDeliveryTerms() {
        return newDeliveryTerms;
    }

    public void setNewDeliveryTerms(String newDeliveryTerms) {
        this.newDeliveryTerms = newDeliveryTerms;
    }

    private String billingAddressAsHTML="";
    public String getBillingAddressAsHTML()
    {
        StringBuffer tempAddress=new StringBuffer("");
        for(int i=0;i<billingAddress.length();i++)
        {
            char ch = billingAddress.charAt(i);
            if(ch=='\n')
            {
                tempAddress.append("<br>");
            }
            else
            {
                tempAddress.append(ch);
            }
        }
        billingAddressAsHTML = tempAddress.toString();
        return billingAddressAsHTML;
    }
    private String shippingAddressAsHTML="";
    public String getShippingAddressAsHTML()
    {
       StringBuffer tempAddress=new StringBuffer("");
       if ( shippingAddress != null )
       {
           for(int i=0;i<shippingAddress.length();i++)
           {
               char ch = shippingAddress.charAt(i);
               if(ch=='\n')
               {
                   tempAddress.append("<br>");
               }
               else
               {
                   tempAddress.append(ch);
               }
           }
       }
       shippingAddressAsHTML = tempAddress.toString();
       return shippingAddressAsHTML;
    }

    // End of Added by veeru
    /*
    //From here.. these values need to get from logic:iterate tag, but it is returning null I am
    //doing like this. this code needs to replace from here to till here caption
    private int lineItem;
    public String[] getLineItem() {
        return lineItem;
    }
    public void setLineItem(String[] lineItem){
        this.lineItem = lineItem;
    }
    private String[] marketingPartNo;
    public String[] getMarketingPartNo(){
        return marketingPartNo;
    }
    public void setMarketingPartNo(String[] marketingPartNo){
        this.marketingPartNo = marketingPartNo;
    }
    private String[] manufacturingPartNo;
    public String[] getManufacturingPartNo(){
        return manufacturingPartNo;
    }
    public void setManufacturingPartNo(String[] manufacturingPartNo){
        this.manufacturingPartNo = manufacturingPartNo;
    }
    private String[] quantity;
    public String[] getQuantity(){
        return quantity;
    }
    public void setQuantity(String[] quantity){
        this.quantity = quantity;
    }
    private String[] requestDate;
    public String[] getRequestDate(){
        return requestDate;
    }
    public void setRequestDate(String[] requestDate){
        this.requestDate = requestDate;
    }
    private String[] unitPrice;
    public String[] getUnitPrice(){
        return unitPrice;
    }
    public void setUnitPrice(String[] unitPrice){
        this.unitPrice = unitPrice;
    }
    private String[] amount;
    public String[] getAmount(){
        return amount;
    }
    public void setAmount(String[] amount){
        this.amount = amount;
    }
    */

    // --------------------------------------------------------- Public Methods


    /**
     * Reset all properties to their default values.
     *
     * @param mapping The mapping used to select this instance
     * @param request The servlet request we are processing
     */
    public void reset(ActionMapping mapping, HttpServletRequest request) {

		//.....

    }


    /**
     * Validate the properties that have been set from this HTTP request,
     * and return an <code>ActionErrors</code> object that encapsulates any
     * validation errors that have been found.  If no errors are found, return
     * <code>null</code> or an <code>ActionErrors</code> object with no
     * recorded error messages.
     *
     * @param mapping The mapping used to select this instance
     * @param request The servlet request we are processing
     */
    public ActionErrors validate(ActionMapping mapping,
                                 HttpServletRequest request) {

        ActionErrors errors = new ActionErrors();

        //if ((vendorName == null) || (vendorName.length() < 1))
        //    errors.add("Vendor", new ActionError("error.vendor name.required"));

        return errors;

    }

    // Added by sujan on 11th Jan 2005.
    public String getFreightInstructions( )
    {
        return freightInstructions;
    }

    public void setFreightInstructions( String freightInstructions )
    {
        this.freightInstructions = freightInstructions;
    }

    //Added by sujan on 17th Jan 2005.
    public int getFreightInstructionsId( )
    {
        return freightInstructionsId;
    }

    public void setFreightInstructionsId( int freightInstructionsId )
    {
        this.freightInstructionsId = freightInstructionsId;
    }

    public String getSalesOrderQuoteNo() {
        return salesOrderQuoteNo;
    }

    public void setSalesOrderQuoteNo(String salesOrderQuoteNo) {
        this.salesOrderQuoteNo = salesOrderQuoteNo;
    }

    public String getEndCustomer() {
        return endCustomer;
    }

    public void setEndCustomer(String endCustomer) {
        this.endCustomer = endCustomer;
    }

    public int getEndCustomerId() {
        return endCustomerId;
    }

    public void setEndCustomerId(int endCustomerId) {
        this.endCustomerId = endCustomerId;
    }

    public boolean isDistributor() {
        return isDistributor;
    }

    public void setDistributor(boolean distributor) {
        isDistributor = distributor;
    }

    public String getQuoteType() {
        return quoteType;
    }

    public void setQuoteType(String quoteType) {
        this.quoteType = quoteType;
    }

    public String getApplication() {
        return application;
    }

    public void setApplication(String application) {
        this.application = application;
    }

    public String getAddNewApplication() {
        return addNewApplication;
    }

    public void setAddNewApplication(String addNewApplication) {
        this.addNewApplication = addNewApplication;
    }

    public String getNewEndCustomerName() {
        return newEndCustomerName;
    }

    public void setNewEndCustomerName(String newEndCustomerName) {
        this.newEndCustomerName = newEndCustomerName;
    }

    public String getNewEndUserName() {
        return newEndUserName;
    }

    public void setNewEndUserName(String newEndUserName) {
        this.newEndUserName = newEndUserName;
    }

    public String getExpectedPoDate() {
        return expectedPoDate;
    }

    public void setExpectedPoDate(String expectedPoDate) {
        this.expectedPoDate = expectedPoDate;
    }


    public QuotationQuestionnairy getQuotationQuestionnairy()
    {
        QuotationQuestionnairy quotationQuestionnairy= new QuotationQuestionnairy();
        quotationQuestionnairy.setOdmId(odmId);
        quotationQuestionnairy.setEndCustomerId (endCustomerId);
        quotationQuestionnairy.setNewEndCustomerName(newEndCustomerName);
        quotationQuestionnairy.setNewEndUserName (newEndUserName);
        quotationQuestionnairy.setQuotationType(quotationType);
        quotationQuestionnairy.setCurrentPrice(currentPrice);
        quotationQuestionnairy.setCurrentPriceUnits(currentPriceUnits);
        quotationQuestionnairy.setCurrentPriceUnitsType(currentPriceUnitsType);
        quotationQuestionnairy.setCurrentPriceOthers(currentPriceOthers);
        quotationQuestionnairy.setTargetPrice(targetPrice);
        quotationQuestionnairy.setTargetPriceUnitsType(targetPriceUnitsType);
        quotationQuestionnairy.setTargetPriceUnits(targetPriceUnits);
        quotationQuestionnairy.setTargetPriceOthers(targetPriceOthers);
        quotationQuestionnairy.setHistoryPricesInfo(historyPricesInfo);
        quotationQuestionnairy.setContractPriceFlag(contractPriceFlag);
        quotationQuestionnairy.setContractPriceFilePath(contractPriceFilePath);
        quotationQuestionnairy.setContractPriceChangedReason(contractPriceChangedReason);
        quotationQuestionnairy.setPreviousCommitments(previousCommitments);
        quotationQuestionnairy.setPreviousCommitmentsPrice(previousCommitmentsPrice);
        quotationQuestionnairy.setCommitmentAddtionalInfo(commitmentAddtionalInfo);
        quotationQuestionnairy.setPreviousQuotation(previousQuotation);
        quotationQuestionnairy.setPreviousQuotationDetails(previousQuotationDetails);
        quotationQuestionnairy.setPriceDiscountReason(priceDiscountReason);
        quotationQuestionnairy.setPriceDiscountComments(priceDiscountComments);
        quotationQuestionnairy.setRebate(rebate);
        quotationQuestionnairy.setRebateValue(rebateValue);
        quotationQuestionnairy.setRebateOpertunity(rebateOpertunity);
        quotationQuestionnairy.setRebateGoal(rebateGoal);
        quotationQuestionnairy.setRebateTarget(rebateTarget);
        quotationQuestionnairy.setRebateTargetValue(rebateTargetValue);
        quotationQuestionnairy.setRebateVerifiedBy(rebateVerifiedBy);
        quotationQuestionnairy.setCompetatior1(competatior1);
        quotationQuestionnairy.setCompetatior1Others(competatior1Others);
        quotationQuestionnairy.setCompetatior1Price(competatior1Price);
        quotationQuestionnairy.setCompetatior1PriceUnit(competatior1PriceUnit);
        quotationQuestionnairy.setCompetatior1Comments(competatior1Comments);
        quotationQuestionnairy.setCompetatior2(competatior2);
        quotationQuestionnairy.setCompetatior2Others(competatior2Others);
        quotationQuestionnairy.setCompetatior2Price(competatior2Price);
        quotationQuestionnairy.setCompetatior2PriceUnit(competatior2PriceUnit);
        quotationQuestionnairy.setCompetatior2Comments(competatior2Comments);
        quotationQuestionnairy.setDistributorMargin(distributorMargin);
        quotationQuestionnairy.setMarginDollars(marginDollars);
        quotationQuestionnairy.setTotalPrevMargins(totalPrevMargins);
        quotationQuestionnairy.setMarginReason(marginReason);
        quotationQuestionnairy.setPrevQuotationNo(prevQuotationNo);
        quotationQuestionnairy.setContractPriceFileName(contractPriceFileName);
        quotationQuestionnairy.setContractPriceFileNamePath (contractPriceFileNamePath );
        quotationQuestionnairy.setCompetatior1PriceUnitsType(competatior1PriceUnitsType);
        quotationQuestionnairy.setCompetatior2PriceUnitsType(competatior2PriceUnitsType);
        quotationQuestionnairy.setCompetatior1PriceUnitOthers(competatior1PriceUnitOthers);
        quotationQuestionnairy.setCompetatior2PriceUnitOthers(competatior2PriceUnitOthers);
        quotationQuestionnairy.setRebateTargetGoalTimeFrame(rebateTargetGoalTimeFrame);
        quotationQuestionnairy.setRebateTargetGoalTimeFrameOthers(rebateTargetGoalTimeFrameOthers);

        return quotationQuestionnairy;
    }

    public void setQuotationQuestionnairy(QuotationQuestionnairy quotationQuestionnairy)
    {
        this.odmId = quotationQuestionnairy.getOdmId();
        this.endCustomerId = quotationQuestionnairy.getEndCustomerId();
        this.newEndCustomerName = quotationQuestionnairy.getNewEndCustomerName();
        this.newEndUserName = quotationQuestionnairy.getNewEndUserName ();
        this.quotationType = quotationQuestionnairy.getQuotationType();
        this.currentPrice = quotationQuestionnairy.getCurrentPrice();
        this.currentPriceUnits = quotationQuestionnairy.getCurrentPriceUnits();
        this.currentPriceUnitsType = quotationQuestionnairy.getCurrentPriceUnitsType();
        this.currentPriceOthers = quotationQuestionnairy.getCurrentPriceOthers();
        this.targetPrice = quotationQuestionnairy.getTargetPrice();
        this.targetPriceUnitsType=quotationQuestionnairy.getTargetPriceUnitsType();
        this.targetPriceUnits=quotationQuestionnairy.getTargetPriceUnits();
        this.targetPriceOthers=quotationQuestionnairy.getTargetPriceOthers();
        this.historyPricesInfo=quotationQuestionnairy.getHistoryPricesInfo();
        this.contractPriceFlag=quotationQuestionnairy.isContractPriceFlag();
        this.contractPriceFilePath=quotationQuestionnairy.getContractPriceFilePath();
        this.contractPriceChangedReason=quotationQuestionnairy.getContractPriceChangedReason();
        this.previousCommitments=quotationQuestionnairy.getPreviousCommitments();
        this.previousCommitmentsPrice=quotationQuestionnairy.getPreviousCommitmentsPrice();
        this.commitmentAddtionalInfo=quotationQuestionnairy.getCommitmentAddtionalInfo();
        this.previousQuotation=quotationQuestionnairy.isPreviousQuotation();
        this.previousQuotationDetails=quotationQuestionnairy.getPreviousQuotationDetails();
        this.priceDiscountReason=quotationQuestionnairy.getPriceDiscountReason();
        this.priceDiscountComments=quotationQuestionnairy.getPriceDiscountComments();
        this.rebate=quotationQuestionnairy.isRebate();
        this.rebateValue=quotationQuestionnairy.getRebateValue();
        this.rebateOpertunity=quotationQuestionnairy.getRebateOpertunity();
        this.rebateGoal=quotationQuestionnairy.getRebateGoal();
        this.rebateTarget=quotationQuestionnairy.getRebateTarget();
        this.rebateTargetValue=quotationQuestionnairy.getRebateTargetValue();
        this.rebateVerifiedBy=quotationQuestionnairy.getRebateVerifiedBy();
        this.competatior1=quotationQuestionnairy.getCompetatior1();
        this.competatior1Others=quotationQuestionnairy.getCompetatior1Others();
        this.competatior1Price=quotationQuestionnairy.getCompetatior1Price();
        this.competatior1PriceUnit=quotationQuestionnairy.getCompetatior1PriceUnit();
        this.competatior1Comments=quotationQuestionnairy.getCompetatior1Comments();
        this.competatior2=quotationQuestionnairy.getCompetatior2();
        this.competatior2Others=quotationQuestionnairy.getCompetatior2Others();
        this.competatior2Price=quotationQuestionnairy.getCompetatior2Price();
        this.competatior2PriceUnit=quotationQuestionnairy.getCompetatior2PriceUnit();
        this.competatior2Comments=quotationQuestionnairy.getCompetatior2Comments();
        this.distributorMargin=quotationQuestionnairy.getDistributorMargin();
        this.marginDollars=quotationQuestionnairy.getMarginDollars();
        this.totalPrevMargins=quotationQuestionnairy.getTotalPrevMargins();
        this.marginReason=quotationQuestionnairy.getMarginReason();
        this.prevQuotationNo=quotationQuestionnairy.getPrevQuotationNo();
        this.contractPriceFileName = quotationQuestionnairy.getContractPriceFileName();
        this.contractPriceFileNamePath = quotationQuestionnairy.getContractPriceFileNamePath();
        this.competatior1PriceUnitsType = quotationQuestionnairy.getCompetatior1PriceUnitsType();
        this.competatior2PriceUnitsType = quotationQuestionnairy.getCompetatior2PriceUnitsType();
        this.competatior1PriceUnitOthers = quotationQuestionnairy.getCompetatior1PriceUnitOthers();
        this.competatior2PriceUnitOthers = quotationQuestionnairy.getCompetatior2PriceUnitOthers();
        this.rebateTargetGoalTimeFrame = quotationQuestionnairy.getRebateTargetGoalTimeFrame();
        this.rebateTargetGoalTimeFrameOthers = quotationQuestionnairy.getRebateTargetGoalTimeFrameOthers();

    }

    public String getPrevQuotationNo() {
        return prevQuotationNo;
    }

    public void setPrevQuotationNo(String prevQuotationNo) {
        this.prevQuotationNo = prevQuotationNo;
    }

    public String getMarginReason() {
        return marginReason;
    }

    public void setMarginReason(String marginReason) {
        this.marginReason = marginReason;
    }

    public String getTotalPrevMargins() {
        return totalPrevMargins;
    }

    public void setTotalPrevMargins(String totalPrevMargins) {
        this.totalPrevMargins = totalPrevMargins;
    }


    public float getMarginDollars() {
        return marginDollars;
    }

    public void setMarginDollars(float marginDollars) {
        this.marginDollars = marginDollars;
    }

    public float getDistributorMargin() {
        return distributorMargin;
    }

    public void setDistributorMargin(float distributorMargin) {
        this.distributorMargin = distributorMargin;
    }

    public String getCompetatior2Comments() {
        return competatior2Comments;
    }

    public void setCompetatior2Comments(String competatior2Comments) {
        this.competatior2Comments = competatior2Comments;
    }

    public String getCompetatior2PriceUnit() {
        return competatior2PriceUnit;
    }

    public void setCompetatior2PriceUnit(String competatior2PriceUnit)
    {
        this.competatior2PriceUnit = competatior2PriceUnit;
    }

    public float getCompetatior2Price()
    {
        return competatior2Price;
    }

    public void setCompetatior2Price(float competatior2Price) {
        this.competatior2Price = competatior2Price;
    }

    public String getCompetatior2Others() {
        return competatior2Others;
    }

    public void setCompetatior2Others(String competatior2Others) {
        this.competatior2Others = competatior2Others;
    }

    public String getCompetatior2() {
        return competatior2;
    }

    public void setCompetatior2(String competatior2) {
        this.competatior2 = competatior2;
    }

    public String getCompetatior1Comments() {
        return competatior1Comments;
    }

    public void setCompetatior1Comments(String competatior1Comments) {
        this.competatior1Comments = competatior1Comments;
    }


    public float getCompetatior1Price() {
        return competatior1Price;
    }

    public void setCompetatior1Price(float competatior1Price) {
        this.competatior1Price = competatior1Price;
    }

    public String getCompetatior1Others() {
        return competatior1Others;
    }

    public void setCompetatior1Others(String competatior1Others) {
        this.competatior1Others = competatior1Others;
    }

    public String getCompetatior1PriceUnit() {
        return competatior1PriceUnit;
    }

    public void setCompetatior1PriceUnit(String competatior1PriceUnit) {
        this.competatior1PriceUnit = competatior1PriceUnit;
    }

    public String getCompetatior1() {
        return competatior1;
    }

    public void setCompetatior1(String competatior1) {
        this.competatior1 = competatior1;
    }

    public String getRebateVerifiedBy() {
        return rebateVerifiedBy;
    }

    public void setRebateVerifiedBy(String rebateVerifiedBy) {
        this.rebateVerifiedBy = rebateVerifiedBy;
    }


    public float getRebateTargetValue() {
        return rebateTargetValue;
    }

    public void setRebateTargetValue(float rebateTargetValue) {
        this.rebateTargetValue = rebateTargetValue;
    }

    public String getRebateTarget() {
        return rebateTarget;
    }

    public void setRebateTarget(String rebateTarget) {
        this.rebateTarget = rebateTarget;
    }

    public String getRebateOpertunity() {
        return rebateOpertunity;
    }

    public void setRebateOpertunity(String rebateOpertunity) {
        this.rebateOpertunity = rebateOpertunity;
    }

    public String getRebateGoal() {
        return rebateGoal;
    }

    public void setRebateGoal(String rebateGoal) {
        this.rebateGoal = rebateGoal;
    }


    public float getRebateValue() {
        return rebateValue;
    }

    public void setRebateValue(float rebateValue) {
        this.rebateValue = rebateValue;
    }

    public boolean isRebate() {
        return rebate;
    }

    public void setRebate(boolean rebate) {
        this.rebate = rebate;
    }

    public String getPriceDiscountComments() {
        return priceDiscountComments;
    }

    public void setPriceDiscountComments(String priceDiscountComments) {
        this.priceDiscountComments = priceDiscountComments;
    }


    public String[] getPriceDiscountReason() {
        return priceDiscountReason;
    }

    public void setPriceDiscountReason(String[] priceDiscountReason) {
        this.priceDiscountReason = priceDiscountReason;
    }

    public String getPreviousQuotationDetails() {
        return previousQuotationDetails;
    }

    public void setPreviousQuotationDetails(String previousQuotationDetails) {
        this.previousQuotationDetails = previousQuotationDetails;
    }


    public String getCommitmentAddtionalInfo() {
        return commitmentAddtionalInfo;
    }

    public void setCommitmentAddtionalInfo(String commitmentAddtionalInfo) {
        this.commitmentAddtionalInfo = commitmentAddtionalInfo;
    }

    public String getPreviousCommitments() {
        return previousCommitments;
    }

    public void setPreviousCommitments(String previousCommitments) {
        this.previousCommitments = previousCommitments;
    }

    public String getContractPriceChangedReason() {
        return contractPriceChangedReason;
    }

    public void setContractPriceChangedReason(String contractPriceChangedReason) {
        this.contractPriceChangedReason = contractPriceChangedReason;
    }


    public FormFile getContractPriceFilePath() {
        return contractPriceFilePath;
    }

    public void setContractPriceFilePath(FormFile contractPriceFilePath) {
        this.contractPriceFilePath = contractPriceFilePath;
    }

    public String getHistoryPricesInfo() {
        return historyPricesInfo;
    }

    public void setHistoryPricesInfo(String historyPricesInfo) {
        this.historyPricesInfo = historyPricesInfo;
    }

    public String getTargetPriceOthers() {
        return targetPriceOthers;
    }

    public void setTargetPriceOthers(String targetPriceOthers) {
        this.targetPriceOthers = targetPriceOthers;
    }


    public int getTargetPriceUnits() {
        return targetPriceUnits;
    }

    public void setTargetPriceUnits(int targetPriceUnits) {
        this.targetPriceUnits = targetPriceUnits;
    }


    public float getTargetPrice() {
        return targetPrice;
    }

    public void setTargetPrice(float targetPrice) {
        this.targetPrice = targetPrice;
    }

    public String getCurrentPriceOthers() {
        return currentPriceOthers;
    }

    public void setCurrentPriceOthers(String currentPriceOthers) {
        this.currentPriceOthers = currentPriceOthers;
    }


    public int getCurrentPriceUnits() {
        return currentPriceUnits;
    }

    public void setCurrentPriceUnits(int currentPriceUnits) {
        this.currentPriceUnits = currentPriceUnits;
    }


    public float getCurrentPrice() {
        return currentPrice;
    }

    public void setCurrentPrice(float currentPrice) {
        this.currentPrice = currentPrice;
    }

    public String getQuotationType() {
        return quotationType;
    }

    public void setQuotationType(String quotationType) {
        this.quotationType = quotationType;
    }

    public String getCurrentPriceUnitsType() {
        return currentPriceUnitsType;
    }

    public void setCurrentPriceUnitsType(String currentPriceUnitsType) {
        this.currentPriceUnitsType = currentPriceUnitsType;
    }

    public String getTargetPriceUnitsType() {
        return targetPriceUnitsType;
    }

    public void setTargetPriceUnitsType(String targetPriceUnitsType) {
        this.targetPriceUnitsType = targetPriceUnitsType;
    }


    public boolean isContractPriceFlag() {
        return contractPriceFlag;
    }

    public void setContractPriceFlag(boolean contractPriceFlag) {
        this.contractPriceFlag = contractPriceFlag;
    }

    public boolean isPreviousQuotation() {
        return previousQuotation;
    }

    public void setPreviousQuotation(boolean previousQuotation) {
        this.previousQuotation = previousQuotation;
    }


    public String getPreviousCommitmentsPrice() {
        return previousCommitmentsPrice;
    }

    public void setPreviousCommitmentsPrice(String previousCommitmentsPrice) {
        this.previousCommitmentsPrice = previousCommitmentsPrice;
    }


    public ArrayList getPreviousQuotationDetailsList() {
        return previousQuotationDetailsList;
    }

    public void setPreviousQuotationDetailsList(ArrayList previousQuotationDetailsList) {
        this.previousQuotationDetailsList = previousQuotationDetailsList;
    }

    public ArrayList getPreviousQuotationPriceDetailsList() {
        return previousQuotationPriceDetailsList;
    }

    public void setPreviousQuotationPriceDetailsList(ArrayList previousQuotationPriceDetailsList) {
        this.previousQuotationPriceDetailsList = previousQuotationPriceDetailsList;
    }


    public String getContractPriceFileName() {
        return contractPriceFileName;
    }

    public void setContractPriceFileName(String contractPriceFileName) {
        this.contractPriceFileName = contractPriceFileName;
    }


    public String getContractPriceFileNamePath() {
        return contractPriceFileNamePath;
    }

    public void setContractPriceFileNamePath(String contractPriceFileNamePath) {
        this.contractPriceFileNamePath = contractPriceFileNamePath;
    }

    public String getContractPriceFileNameEncoded()
    {
        String fileLocalPathEncoded = "";
        if ( contractPriceFileName != null )
        {
            int idx = contractPriceFileName.lastIndexOf( "\\" );
            String fileName = contractPriceFileName.substring( idx+1 );
            fileName = encode ( fileName );
            String filePath = contractPriceFileName.substring(0,idx+1);

            fileLocalPathEncoded = filePath + fileName;
        }
        return fileLocalPathEncoded;
    }

    public String getContractPriceFileNameWithPathEncoded()
    {
        String fileLocalPathEncoded = "";
        if ( contractPriceFileNamePath != null )
        {
            int idx = contractPriceFileNamePath.lastIndexOf( "\\" );
            String fileName = contractPriceFileNamePath.substring( idx+1 );
            fileName = encode ( fileName );
            String filePath = contractPriceFileNamePath.substring(0,idx+1);

            fileLocalPathEncoded = filePath + fileName;
        }
        return fileLocalPathEncoded;
    }

    private String encode ( String name )
    {
        String encodedName = "";

        int nameLength = ( name != null ) ? name.length() : 0;
        char ch;
        for ( int i = 0; i < nameLength; i++ )
        {
            ch = name.charAt(i);
            if ( ( ch >= 'a' && ch <= 'z' ) || (ch >= 'A' && ch <= 'Z' ) || ( ch >= '0' && ch <= '9' )
                    || ch == '-' || ch == '_' || ch == '.' ) //not encoded
            {
                encodedName = encodedName + ch;
            }
            else
            {
                String hexValue = Integer.toHexString( ch ).toUpperCase();
                encodedName = encodedName + "%" + hexValue;
            }
        }
        return encodedName;
    }

    public String getCompetatior1PriceUnitString()
    {
        return StringUtils.formatUnits( competatior1PriceUnit);
    }
    public String getCompetatior2PriceUnitString()
    {
        return StringUtils.formatUnits( competatior2PriceUnit);
    }
    public String getCurrentPriceUnitsString()
    {
        return StringUtils.formatUnits( currentPriceUnits);
    }
    public String getTargetPriceUnitsString()
    {
        return StringUtils.formatUnits( targetPriceUnits);
    }



    public String getCompetatior1PriceUnitsType() {
        return competatior1PriceUnitsType;
    }

    public void setCompetatior1PriceUnitsType(String competatior1PriceUnitsType) {
        this.competatior1PriceUnitsType = competatior1PriceUnitsType;
    }


    public String getCompetatior2PriceUnitsType() {
        return competatior2PriceUnitsType;
    }

    public void setCompetatior2PriceUnitsType(String competatior2PriceUnitsType) {
        this.competatior2PriceUnitsType = competatior2PriceUnitsType;
    }


    public String getCompetatior1PriceUnitOthers() {
        return competatior1PriceUnitOthers;
    }

    public void setCompetatior1PriceUnitOthers(String competatior1PriceUnitOthers) {
        this.competatior1PriceUnitOthers = competatior1PriceUnitOthers;
    }

    public String getCompetatior2PriceUnitOthers() {
        return competatior2PriceUnitOthers;
    }

    public void setCompetatior2PriceUnitOthers(String competatior2PriceUnitOthers) {
        this.competatior2PriceUnitOthers = competatior2PriceUnitOthers;
    }

    public String getRebateTargetGoalTimeFrame() {
        return rebateTargetGoalTimeFrame;
    }

    public void setRebateTargetGoalTimeFrame(String rebateTargetGoalTimeFrame) {
        this.rebateTargetGoalTimeFrame = rebateTargetGoalTimeFrame;
    }

    public String getRebateTargetGoalTimeFrameOthers() {
        return rebateTargetGoalTimeFrameOthers;
    }

    public void setRebateTargetGoalTimeFrameOthers(String rebateTargetGoalTimeFrameOthers) {
        this.rebateTargetGoalTimeFrameOthers = rebateTargetGoalTimeFrameOthers;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getOpportunityId() {
        return opportunityId;
    }

    public void setOpportunityId(String opportunityId) {
        this.opportunityId = opportunityId;
    }
}